package www.woniuxy.com.class112.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import www.woniuxy.com.class112.entity.WorkUnit;
import www.woniuxy.com.class112.entity.WorkUnitExample;

public interface WorkUnitMapper {
    long countByExample(WorkUnitExample example);

    int deleteByExample(WorkUnitExample example);

    int deleteByPrimaryKey(Long id);

    int insert(WorkUnit record);

    int insertSelective(WorkUnit record);

    List<WorkUnit> selectByExample(WorkUnitExample example);

    WorkUnit selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") WorkUnit record, @Param("example") WorkUnitExample example);

    int updateByExample(@Param("record") WorkUnit record, @Param("example") WorkUnitExample example);

    int updateByPrimaryKeySelective(WorkUnit record);

    int updateByPrimaryKey(WorkUnit record);
    @Select("select name from work_unit where id=#{id}")
    String getUnitName(Long id);
}